package com.fyh.feign;

import com.fyh.entity.common.Result;
import com.fyh.feign.fallback.CandidateChatFeignClientFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PutMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "service-chat", fallback = CandidateChatFeignClientFallback.class, path = "/chat")
public interface CandidateChatFeignClient {
    /**
     * 发送职位投递消息
     *
     * @param positionId
     * @param employerId
     * @return
     */
    @PutMapping("/sendDeliveryMessage")
    Result sendDeliveryMessage(@RequestParam("positionId") Long positionId, @RequestParam("employerId") Long employerId);
}
